﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace qf_cms.admin
{
	public partial class changepwd : SessionPage
	{
		protected string tip = "";
		LogicLayer mgr = new LogicLayer();

		protected void Page_Load(object sender, EventArgs e)
		{
			if (IsPostBack)
			{
				int r = mgr.ChangePwd(this.CurrentUserName, Request.Form["Password0"], Request.Form["Password1"]);
				if (r == 1)
					tip = "旧密码不匹配!";
				else if (r == -1)
					tip = "更改失败!";
				else if (r == 0)
					tip = "更改成功!";					
			}
		}
	}
}